home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr37
/
nwsf121.zip
/
NEWSEDIT.PPE
(
.txt
)
< prev
next >
Wrap
PCBoard Programming Language Executable
|
1995-03-08
|
3KB
|
263 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 3.1O (Encryption type I) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Boolean BOOLEAN001
Boolean BOOLEAN002
Boolean BOOLEAN003
Integer INTEGER001
Integer INTEGER002
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
String STRING008
String STRING009
String STRING010
Declare Function FUNCTION002(Integer INTEGER003) String
;------------------------------------------------------------------------------
Goto LABEL004
End
If (Left("", 2) == "~~") Then
INTEGER001 = 1
Else
INTEGER001 = 0
Endif
EndFunc
INTEGER002 = Abs(0 - 0)
EndFunc
;------------------------------------------------------------------------------
Function FUNCTION002(Integer INTEGER003) String
Boolean BOOLEAN001
String STRING002
String STRING003
BOOLEAN001 = 0
STRING002 = ""
:LABEL001
If (BOOLEAN001) Goto LABEL003
FGet INTEGER003, STRING002
If (Ferr(INTEGER003)) Then
BOOLEAN001 = 1
Else
If ((Trim(STRING002, " ") == "") || (Left(STRING002, 1) == ";")) Goto LABEL002
Goto LABEL003
:LABEL002
Goto LABEL001
Endif
:LABEL003
If (BOOLEAN001 == 1) STRING002 = ""
FUNCTION002 = STRING002
EndFunc
:LABEL004
STRING009 = "1.2"
STRING004 = PPEPath() + "NEWSFLSH.CFG"
BOOLEAN003 = 0
STRING005 = PPEPath() + "NEWSTMP.!!!"
If (TokCount() > 0) Then
STRING010 = GetToken()
BOOLEAN003 = 1
Endif
INTEGER004 = FNext()
FOpen INTEGER004, STRING004, 0, 0
If (Ferr(INTEGER004)) Then
If (BOOLEAN003) Goto LABEL005
Log PPEName() + ".CFG file missing", 0
End
Goto LABEL006
:LABEL005
Else
:LABEL006
INTEGER006 = 0
While (!Ferr(INTEGER004) && (INTEGER006 < 1)) Do
STRING007 = FUNCTION002(INTEGER004)
STRING003 = Trim(STRING007, " ")
STRING006 = PPEPath() + Trim(STRING007, " ")
If (!Exist(STRING006)) STRING003 = ""
Inc INTEGER006
EndWhile
FClose INTEGER004
Endif
If (BOOLEAN003) STRING007 = STRING010
Cls
PrintLn "@X0ANewsFlash Editor Version " + STRING009 + "@X07"
:LABEL007
Newline
InputStr "Enter Newsfile to add to (or QUIT)", STRING007, 10, 8, Mask_File(), 8 + 2
Newline
STRING003 = Upper(Trim(STRING007, " "))
If (STRING003 == "QUIT") End
STRING006 = PPEPath() + Trim(STRING007, " ")
If (Exist(STRING006)) Goto LABEL008
PrintLn "File Does Not Exist"
InputYN "Create it", STRING008, 10
If (Upper(STRING008) <> YesChar()) Goto LABEL007
Newline
INTEGER004 = FNext()
FCreate INTEGER004, STRING006, 1, 2
FClose INTEGER004
:LABEL008
INTEGER004 = FNext()
FOpen INTEGER004, STRING005, 1, 3
FPutLn INTEGER004, "~~" + ReplaceStr(String(Date()), "-", "/")
Newlines 2
PrintLn "@X0EEnter text for entry. Press <ENTER> on a blank line to quit@X07"
BOOLEAN002 = 0
STRING007 = ""
:LABEL009
If (BOOLEAN002) Goto LABEL012
InputStr "", STRING007, 15, 76, Mask_Ascii(), 2 + 4096 + 256 + 512
If (Len(STRING007)) Goto LABEL010
STRING007 = NoChar()
InputYN "Done Editing", STRING007, 10
If (Upper(STRING007) == YesChar()) Then
STRING007 = ""
BOOLEAN002 = 1
Newline
Goto LABEL011
Else
STRING007 = ""
Newline
Goto LABEL011
Endif
Newline
:LABEL010
FPutLn INTEGER004, STRING007
STRING007 = ""
:LABEL011
Goto LABEL009
:LABEL012
STRING007 = YesChar()
InputYN "Do you want to add this to the " + STRING003 + " File", STRING007, 10
Newline
If (Upper(STRING007) == NoChar()) Then
PrintLn "@X8CAborting...@X07"
FClose INTEGER004
Delete STRING005
End
Endif
INTEGER005 = FNext()
FOpen INTEGER005, STRING006, 0, 0
FGet INTEGER005, STRING007
:LABEL013
If (Ferr(INTEGER005)) Goto LABEL014
FPutLn INTEGER004, STRING007
FGet INTEGER005, STRING007
Goto LABEL013
:LABEL014
FCloseAll
Copy STRING005, STRING006
Delete STRING005
SPrintLn "NewsFlash News file Updated"
Log "NewsFlash News file Updated", 0
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 5 End
; 1 Cls
; 28 Goto
; 34 Let
; 4 PrintLn
; 19 If
; 1 FCreate
; 3 FOpen
; 3 FClose
; 3 FGet
; 3 FPutLn
; 2 Delete
; 2 Log
; 2 InputStr
; 3 InputYN
; 1 Inc
; 7 Newline
; 1 Newlines
; 1 SPrintLn
; 1 Copy
; 1 FCloseAll
; 3 EndFunc
;
;
; ■ Functions used :
;
; 14 +
; 1 -
; 7 ==
; 1 <>
; 1 <
; 1 >
; 15 !
; 1 &&
; 1 ||
; 1 Len(
; 4 Upper()
; 2 Left()
; 4 Ferr()
; 5 Trim()
; 1 Date()
; 2 NoChar()
; 3 YesChar()
; 1 String()
; 1 Mask_File()
; 1 Mask_Ascii()
; 4 PPEPath()
; 1 GetToken()
; 2 Exist()
; 1 Abs()
; 1 PPEName()
; 1 TokCount()
; 1 ReplaceStr()
; 4 FNext()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 1 While/EndWhile
; 6 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------